export default function clone<T>(source: T) {
	if (source === undefined) {
		return undefined;
	} else {
		return JSON.parse(JSON.stringify(source));
	}
}
